﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Web.Mvc;
using ALH.DB;
using ALH.DB.Tables;

namespace ALH.Lib.Controllers
{
    [RoutePrefix("api/datasource")]
    public class DataSourceController: BaseController
    {
        [Route("GetDataSource")]
        [HttpGet]
        public List<DataSources> GetDataSource()
        {
            AHLDBContext context = new AHLDBContext();
            var list = context.DataSources.ToList();
            return list;
        }
    }
}
